\hypertarget{class_zebulon_1_1_coral_a_h_r_s_1_1_data_matrix}{
\section{Zebulon::CoralAHRS::DataMatrix Class Reference}
\label{class_zebulon_1_1_coral_a_h_r_s_1_1_data_matrix}\index{Zebulon::CoralAHRS::DataMatrix@{Zebulon::CoralAHRS::DataMatrix}}
}


This message is sent when the system output mode has been set to CORAL MATRIX. It contains system time and matrix orientation data. These messages are sent at a constant rate equal to the standard systemoutput rate divided by the output rate divisor.  


{\ttfamily \#include $<$datamatrix.h$>$}Inheritance diagram for Zebulon::CoralAHRS::DataMatrix::\begin{figure}[H]
\begin{center}
\leavevmode
\includegraphics[height=2cm]{class_zebulon_1_1_coral_a_h_r_s_1_1_data_matrix}
\end{center}
\end{figure}
\subsection*{Public Member Functions}
\begin{DoxyCompactItemize}
\item 
\hypertarget{class_zebulon_1_1_coral_a_h_r_s_1_1_data_matrix_a5e1562d5fbab00aa62236de327f97216}{
\hyperlink{class_zebulon_1_1_coral_a_h_r_s_1_1_data_matrix_a5e1562d5fbab00aa62236de327f97216}{DataMatrix} ()}
\label{class_zebulon_1_1_coral_a_h_r_s_1_1_data_matrix_a5e1562d5fbab00aa62236de327f97216}

\begin{DoxyCompactList}\small\item\em Constructor. \item\end{DoxyCompactList}\item 
\hypertarget{class_zebulon_1_1_coral_a_h_r_s_1_1_data_matrix_a773b94cc57d80d7f17ed560e29fe215c}{
\hyperlink{class_zebulon_1_1_coral_a_h_r_s_1_1_data_matrix_a773b94cc57d80d7f17ed560e29fe215c}{DataMatrix} (const \hyperlink{class_zebulon_1_1_coral_a_h_r_s_1_1_data_matrix}{DataMatrix} \&message)}
\label{class_zebulon_1_1_coral_a_h_r_s_1_1_data_matrix_a773b94cc57d80d7f17ed560e29fe215c}

\begin{DoxyCompactList}\small\item\em Copy constructor. \item\end{DoxyCompactList}\item 
\hypertarget{class_zebulon_1_1_coral_a_h_r_s_1_1_data_matrix_a4440807948fe191ced4e2e1b1e4ebd5e}{
\hyperlink{class_zebulon_1_1_coral_a_h_r_s_1_1_data_matrix_a4440807948fe191ced4e2e1b1e4ebd5e}{$\sim$DataMatrix} ()}
\label{class_zebulon_1_1_coral_a_h_r_s_1_1_data_matrix_a4440807948fe191ced4e2e1b1e4ebd5e}

\begin{DoxyCompactList}\small\item\em Destructor. \item\end{DoxyCompactList}\item 
virtual int \hyperlink{class_zebulon_1_1_coral_a_h_r_s_1_1_data_matrix_ae0509c73a9057477ec7a5f76c40791ed}{WriteMessageBody} (CxUtils::Packet \&packet) const 
\begin{DoxyCompactList}\small\item\em Writes contents of message body to packet. \item\end{DoxyCompactList}\item 
virtual int \hyperlink{class_zebulon_1_1_coral_a_h_r_s_1_1_data_matrix_a6749f21ed05099f1b79ad0091f5d35c9}{ReadMessageBody} (const CxUtils::Packet \&packet)
\begin{DoxyCompactList}\small\item\em Reads contents of message body from the packet, saving to internal data members. \item\end{DoxyCompactList}\item 
\hypertarget{class_zebulon_1_1_coral_a_h_r_s_1_1_data_matrix_a8a714d2ebebbd0d81d6fb35fcc4bc457}{
virtual \hyperlink{class_zebulon_1_1_coral_a_h_r_s_1_1_message}{Message} $\ast$ {\bfseries Clone} () const }
\label{class_zebulon_1_1_coral_a_h_r_s_1_1_data_matrix_a8a714d2ebebbd0d81d6fb35fcc4bc457}

\item 
\hypertarget{class_zebulon_1_1_coral_a_h_r_s_1_1_data_matrix_a3bba6a7beee5529845b94b0a76bf374e}{
virtual void \hyperlink{class_zebulon_1_1_coral_a_h_r_s_1_1_data_matrix_a3bba6a7beee5529845b94b0a76bf374e}{Print} () const }
\label{class_zebulon_1_1_coral_a_h_r_s_1_1_data_matrix_a3bba6a7beee5529845b94b0a76bf374e}

\begin{DoxyCompactList}\small\item\em Prints data to console window. \item\end{DoxyCompactList}\item 
\hypertarget{class_zebulon_1_1_coral_a_h_r_s_1_1_data_matrix_ab44e373b10b77bb91ea6cd1f458ceb70}{
\hyperlink{class_zebulon_1_1_coral_a_h_r_s_1_1_data_matrix}{DataMatrix} \& \hyperlink{class_zebulon_1_1_coral_a_h_r_s_1_1_data_matrix_ab44e373b10b77bb91ea6cd1f458ceb70}{operator=} (const \hyperlink{class_zebulon_1_1_coral_a_h_r_s_1_1_data_matrix}{DataMatrix} \&message)}
\label{class_zebulon_1_1_coral_a_h_r_s_1_1_data_matrix_ab44e373b10b77bb91ea6cd1f458ceb70}

\begin{DoxyCompactList}\small\item\em Sets equal to. \item\end{DoxyCompactList}\end{DoxyCompactItemize}
\subsection*{Public Attributes}
\begin{DoxyCompactItemize}
\item 
\hypertarget{class_zebulon_1_1_coral_a_h_r_s_1_1_data_matrix_abdfed04cdff2f6bd47e56a127cf77c06}{
unsigned short \hyperlink{class_zebulon_1_1_coral_a_h_r_s_1_1_data_matrix_abdfed04cdff2f6bd47e56a127cf77c06}{mSystemTimeMs}}
\label{class_zebulon_1_1_coral_a_h_r_s_1_1_data_matrix_abdfed04cdff2f6bd47e56a127cf77c06}

\begin{DoxyCompactList}\small\item\em System time from Coral AHRS internal clock (milliseconds). \item\end{DoxyCompactList}\item 
\hypertarget{class_zebulon_1_1_coral_a_h_r_s_1_1_data_matrix_a13922d86afba64a635986299bbc0e8f0}{
CxUtils::Matrix \hyperlink{class_zebulon_1_1_coral_a_h_r_s_1_1_data_matrix_a13922d86afba64a635986299bbc0e8f0}{mOrientation}}
\label{class_zebulon_1_1_coral_a_h_r_s_1_1_data_matrix_a13922d86afba64a635986299bbc0e8f0}

\begin{DoxyCompactList}\small\item\em Stores values of orientation in a 3x3 matrix or real numbers. \item\end{DoxyCompactList}\end{DoxyCompactItemize}


\subsection{Detailed Description}
This message is sent when the system output mode has been set to CORAL MATRIX. It contains system time and matrix orientation data. These messages are sent at a constant rate equal to the standard systemoutput rate divided by the output rate divisor. 

\subsection{Member Function Documentation}
\hypertarget{class_zebulon_1_1_coral_a_h_r_s_1_1_data_matrix_a6749f21ed05099f1b79ad0091f5d35c9}{
\index{Zebulon::CoralAHRS::DataMatrix@{Zebulon::CoralAHRS::DataMatrix}!ReadMessageBody@{ReadMessageBody}}
\index{ReadMessageBody@{ReadMessageBody}!Zebulon::CoralAHRS::DataMatrix@{Zebulon::CoralAHRS::DataMatrix}}
\subsubsection[{ReadMessageBody}]{\setlength{\rightskip}{0pt plus 5cm}int DataMatrix::ReadMessageBody (const CxUtils::Packet \& {\em packet})\hspace{0.3cm}{\ttfamily  \mbox{[}virtual\mbox{]}}}}
\label{class_zebulon_1_1_coral_a_h_r_s_1_1_data_matrix_a6749f21ed05099f1b79ad0091f5d35c9}


Reads contents of message body from the packet, saving to internal data members. 
\begin{DoxyParams}{Parameters}
\item[\mbox{$\leftarrow$} {\em packet}]The packet to read data from.\end{DoxyParams}
\begin{DoxyReturn}{Returns}
Number of bytes read from packet. 
\end{DoxyReturn}


Implements \hyperlink{class_zebulon_1_1_coral_a_h_r_s_1_1_message}{Zebulon::CoralAHRS::Message}.\hypertarget{class_zebulon_1_1_coral_a_h_r_s_1_1_data_matrix_ae0509c73a9057477ec7a5f76c40791ed}{
\index{Zebulon::CoralAHRS::DataMatrix@{Zebulon::CoralAHRS::DataMatrix}!WriteMessageBody@{WriteMessageBody}}
\index{WriteMessageBody@{WriteMessageBody}!Zebulon::CoralAHRS::DataMatrix@{Zebulon::CoralAHRS::DataMatrix}}
\subsubsection[{WriteMessageBody}]{\setlength{\rightskip}{0pt plus 5cm}int DataMatrix::WriteMessageBody (CxUtils::Packet \& {\em packet}) const\hspace{0.3cm}{\ttfamily  \mbox{[}virtual\mbox{]}}}}
\label{class_zebulon_1_1_coral_a_h_r_s_1_1_data_matrix_ae0509c73a9057477ec7a5f76c40791ed}


Writes contents of message body to packet. 
\begin{DoxyParams}{Parameters}
\item[\mbox{$\leftarrow$} {\em packet}]The packet to write data to.\end{DoxyParams}
\begin{DoxyReturn}{Returns}
Number of bytes written to packet. 
\end{DoxyReturn}


Implements \hyperlink{class_zebulon_1_1_coral_a_h_r_s_1_1_message}{Zebulon::CoralAHRS::Message}.

The documentation for this class was generated from the following files:\begin{DoxyCompactItemize}
\item 
C:/Users/Matt/Documents/School/Robotics/zebulon/v2/coralahrs/include/coralahrs/messages/datamatrix.h\item 
C:/Users/Matt/Documents/School/Robotics/zebulon/v2/coralahrs/src/coralahrs/messages/\hyperlink{datamatrix_8cpp}{datamatrix.cpp}\end{DoxyCompactItemize}
